// export const prefix = 'https://clover.api.w3cshare.cn'
export const prefix = 'http://127.0.0.1:7001'
export const image_prefix = 'https://clover-mini-program.oss-cn-beijing.aliyuncs.com/'
export const ossPrefix = 'https://clover-mini-program.oss-cn-beijing.aliyuncs.com/'
/**
 * global times
 * 时间格式化
 * @param d
 * @returns {string}
 */
// export function formatDate(d:number, sec:boolean) {
//   let time
//   let date = new Date(d)
//   let y = date.getFullYear()
//   let M = date.getMonth() + 1
//   M = M < 10 ? '0' + M : M
//   let d = date.getDate()
//   d = d < 10 ? '0' + d : d
//   let h = date.getHours()
//   h = h < 10 ? '0' + h : h
//   let m = date.getMinutes()
//   m = m < 10 ? '0' + m : m
//   let s = date.getSeconds()
//   s = s < 10 ? '0' + s : s
//   if (sec) {
//     time = y + '-' + M + '-' + d + ' ' + h + ':' + m + ':' + s
//   } else {
//     time = y + '-' + M + '-' + d + ' ' + h + ':' + m
//   }

//   return time
// }